import java.util.Scanner;

public class CompareChars {
    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        char[] chars = new char[10];
        System.out.println("输入10个字符：");
        for (int i = 0; i < 10; i++) {
            chars[i] = input.next().charAt(0);
        }
        char min = chars[0];
        for (char c : chars) {
            if (c < min) {
                min = c;
            }
        }
        System.out.println("字典序最小的字符是：" + min);
    }
}

